package com.xaicode.template.async.config;

/**
 * @author Locker
 * @date 2021/8/4 0004 11:08
 */
public class AsyncException extends RuntimeException {

    public AsyncException() {
        super();
    }

    public AsyncException(String msg) {
        super(msg);
    }

    public AsyncException(int code, String msg) {
        super(msg);
        this.code = code;
    }

    /**
     * error code
     */
    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
